package org.example.mapper;

import org.apache.ibatis.annotations.Param;
import org.example.pojo.Grade;

import java.util.List;

public interface StuGradeMapper {
    List<Grade> selectAll();
    List<Grade> selectById(@Param("id") int id);
    List<Grade> selectByKeyword(@Param("name") String name, @Param("keyword") Object keyword);

    void addGrade(Grade grade);
    void deleteGrade(int id);
    void update(@Param("id") int id, @Param("selectedName") String selectedName, @Param("newValue") Object newValue);

}
